Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle unmounted carrier thread in ThreadMXBeanImpl.getThreadInfo #18167

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

babsingh
Copy link
Contributor

@babsingh babsingh commented Sep 20, 2023

If a virtual thread is mounted on a carrier thread, then blocker and
blockerOwner are the virtual thread, and the vmstate is WAITING for
the carrier thread. This behaviour matches the RI, and it also allows
us to pass the virtual/CarrierThreadWaits (JTreg test).

Related: #18051

Signed-off-by: Babneet Singh [email protected]

@babsingh
Copy link
Contributor Author

@tajila Requesting your review.

@babsingh babsingh requested a review from tajila September 20, 2023 14:14
@babsingh babsingh force-pushed the fix_mxbean_threadinfo branch from 9fd0ec8 to fa1ab9e Compare September 20, 2023 14:15
If a virtual thread is mounted on a carrier thread, then blocker and
blockerOwner are the virtual thread, and the vmstate is WAITING for
the carrier thread. This behaviour matches the RI, and it also allows
us to pass the virtual/CarrierThreadWaits (JTreg test).

Related: eclipse-openj9#18051

Signed-off-by: Babneet Singh <[email protected]>
@babsingh babsingh force-pushed the fix_mxbean_threadinfo branch from fa1ab9e to bdb11b9 Compare September 20, 2023 14:17
@tajila
Copy link
Contributor

tajila commented Sep 20, 2023

jenkins test sanity alinux64 jdk21

@tajila
Copy link
Contributor

tajila commented Sep 20, 2023

jenkins compile win jdk11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants